﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Purdue.Extensions
{
    public static class CustomerExtension
    {
        public static Int32 ToInt32(this string content)
        {
            try
            {
                return Int32.Parse(content);
            }
            catch { return 0; }
        }

        public static Int64 ToInt64(this string content)
        {
            try { return Int64.Parse(content); }
            catch { return 0; }
        }
    }
}
